package com.ruoyi.student.service.impl;

import java.util.List;

import com.ruoyi.student.domain.StudentTrackLog;
import com.ruoyi.student.mapper.StudentTrackLogMapper;
import com.ruoyi.student.service.IStudentTrackLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 教学跟踪Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-26
 */
@Service
public class StudentTrackLogServiceImpl implements IStudentTrackLogService
{
    @Autowired
    private StudentTrackLogMapper studentTrackLogMapper;

    /**
     * 查询教学跟踪
     * 
     * @param id 教学跟踪主键
     * @return 教学跟踪
     */
    @Override
    public StudentTrackLog selectStudentTrackLogById(Long id)
    {
        return studentTrackLogMapper.selectStudentTrackLogById(id);
    }

    /**
     * 查询教学跟踪列表
     * 
     * @param studentTrackLog 教学跟踪
     * @return 教学跟踪
     */
    @Override
    public List<StudentTrackLog> selectStudentTrackLogList(StudentTrackLog studentTrackLog)
    {
        return studentTrackLogMapper.selectStudentTrackLogList(studentTrackLog);
    }

    /**
     * 新增教学跟踪
     * 
     * @param studentTrackLog 教学跟踪
     * @return 结果
     */
    @Override
    public int insertStudentTrackLog(StudentTrackLog studentTrackLog)
    {
        return studentTrackLogMapper.insertStudentTrackLog(studentTrackLog);
    }

    /**
     * 修改教学跟踪
     * 
     * @param studentTrackLog 教学跟踪
     * @return 结果
     */
    @Override
    public int updateStudentTrackLog(StudentTrackLog studentTrackLog)
    {
        return studentTrackLogMapper.updateStudentTrackLog(studentTrackLog);
    }

    /**
     * 批量删除教学跟踪
     * 
     * @param ids 需要删除的教学跟踪主键
     * @return 结果
     */
    @Override
    public int deleteStudentTrackLogByIds(Long[] ids)
    {
        return studentTrackLogMapper.deleteStudentTrackLogByIds(ids);
    }

    /**
     * 删除教学跟踪信息
     * 
     * @param id 教学跟踪主键
     * @return 结果
     */
    @Override
    public int deleteStudentTrackLogById(Long id)
    {
        return studentTrackLogMapper.deleteStudentTrackLogById(id);
    }
}
